<?php
declare (strict_types = 1);

namespace app\validate;

use think\Validate;

class ListsValidate extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名' =>  ['规则1','规则2'...]
     *
     * @var array
     */
    protected $rule = [
		'nickname'  => 'require|max:50',
		'from_url'  => 'require|max:255',
		'to_url'  => 'require|max:255',
		'ename' => 'max:50',
		'status'  => 'number|max:1',
	];

    /**
     * 定义错误信息
     * 格式：'字段名.规则名' =>  '错误信息'
     *
     * @var array
     */
    protected $message = [
		'nickname.require' => '专属人名称必须填写',
		'from_url.require' => '专属域名必须填写',
		'to_url.require' => '跳转链接必须填写'
	];
}
